package com.smartcar.admin.mapper;

import com.smartcar.common.domain.User;
import com.smartcar.common.domain.request.FindUserVo;
import com.smartcar.common.domain.request.UpdateLoginVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface AdminMapper {
    User findUserName(FindUserVo findUserVo);

    int insertUser(User user);

    User verifyUniqueUserName(@Param("username") String username);

    User findByPhone(@Param("phone") String phone);

    int updateLogin(UpdateLoginVo updateLoginVo);

    int updateDriverAcceptStatus(User user);

    int updateDriverCar(User user);

    int updateDriverAddr(User user);
    List<User> selectUserByState();
}
